Skip to content

feat: add generate-config command#14

Merged
trisdoan merged 5 commits intomainfrom
feat/generate-config
Mar 20, 2026
Merged

feat: add generate-config command#14
trisdoan merged 5 commits intomainfrom
feat/generate-config

Conversation

@nilshamerlinck
Copy link
Copy Markdown
Contributor

@nilshamerlinck nilshamerlinck commented Mar 13, 2026

Summary

  • Add tlc generate-config <profile> command with two profiles:
    • odoo-minimal — copies assets/odoo_minimal.toml as config
    • oca-contributor — fetches OCA repo list from trobz/odoo-addons-repos and combines with assets/oca_contributor.toml
  • Honors --yes flag to skip overwrite confirmation
  • Remove trobz_local/assets/odoo_dev.toml; asset files now live in both root assets/ (source of truth) and trobz_local/assets/ (for packaging via importlib.resources)
  • Update show_config_instructions() to point users to tlc generate-config

Test plan

  • tlc generate-config odoo-minimal creates config.toml matching assets/odoo_minimal.toml
  • tlc generate-config oca-contributor fetches remote repos and prepends assets/oca_contributor.toml
  • Overwrite prompt shown when config.toml already exists
  • tlc -y generate-config oca-contributor skips overwrite prompt
  • tlc --help shows generate-config before init
  • Works when installed via uv tool install

🤖 Generated with Claude Code

nilshamerlinck and others added 5 commits March 13, 2026 15:23
…or profiles

New `tlc generate-config <profile>` command that creates config.toml from
predefined profiles. oca-contributor dynamically fetches OCA repo list from
trobz/odoo-addons-repos. Also removes trobz_local/assets/ in favor of root
assets/ directory and updates show_config_instructions to point to the new command.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…led as a package

Path(__file__) relative traversal breaks when installed via uv tool install
because the root assets/ dir is not included in the package.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ping

The remote content (versions, repos) must come before the local
oca_contributor.toml which opens a [tools] table, otherwise versions
ends up scoped under [tools] instead of at the top level.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@trisdoan trisdoan merged commit 0a0ce8c into main Mar 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants